Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update merkeldag to use the explicit decoder registry #104

Merged
merged 4 commits into from
Jun 9, 2023

Conversation

willscott
Copy link
Contributor

Update the interface of go-ipld-legacy to reflect the change in ipfs/go-ipld-legacy#12

There is no breaking interface change in this update.

will wait until v0.2.0 of legacy is tagged and then use that version as the dependency here.

needs the equivalent update in the boxo fork of this repo i think.

@willscott willscott requested a review from rvagg May 30, 2023 15:06
@welcome

This comment was marked as resolved.

Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nicely nonbreaking
👍 when the version is bumped and go mod is tidied

@willscott
Copy link
Contributor Author

@aschmahmann should i wait to merge this to stay in sync with the variant you're working on in boxo?

@aschmahmann
Copy link

aschmahmann commented May 31, 2023

Up to you. Might be easier in case we find any other oddities along the way. Sorry I'm the slow leg here, plan is to get the next round of everything bubbled up today for people to test with tomorrow.

However, if you don't want things to exactly match anymore that's ok too. e.g. if boxo adds a setter for the registry and you don't want to.

@willscott
Copy link
Contributor Author

ending up with 2 variants of this code with slightly different semantics so that it's harder to migrate seems worse than keeping them in sync

@willscott
Copy link
Contributor Author

@aschmahmann - this should now include #105 and matches what's in boxo

merkledag.go Outdated Show resolved Hide resolved
@willscott willscott merged commit bb9deca into master Jun 9, 2023
@willscott willscott deleted the feat/legacy-decoder branch June 9, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants